@ECHO off
CLS
SET NOME=functionparser.c
SET info=*** YACC - gerar %NOME%... ***
IF "%1"=="codeblocks" (
	echo %info%
) ELSE (
	TITLE %info%
	PUSHD "..\.."
)
parser\yacc\yacc.exe -g -o parser/%NOME% parser/yacc/gramatica.y
IF "%1"=="codeblocks" (
	EXIT %ERRORLEVEL%
) ELSE (
	POPD
)
